<?php

namespace tbollmeier\kakuromaster\core;

class GroupFactory
{
    public function createGroup($sum)
    {   
        $group = new Group($this->currId, $sum);
        $this->groups[$this->currId] = $group;
        $this->currId++;
        
        return $group;
    }
    
    private $currId = 1;
    private $groups = [];
}